package cn.wbnull.springbootdemo.boot;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/*
 * @Author:大力王
 * @Date:2025/6/28-28-16:00
 * 开始了
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.web.cors")
public class CorsProperties {
    private List<String> allowedOrigins;
    private List<String> allowedMethods;
    private List<String> allowedHeaders;
    private List<String> exposedHeaders;
    private Boolean allowCredentials = false;
    private Long maxAge = 1800L;
}
